 // 金融服务
import request from "../http";

// 企业融资列表
export function getDetailedList(query) {
  return request({
    url: "/finance/companyFinancing/getDetailedList",
    method: "GET",
    params: query
  });
}
// 融资成功列表
export function getFinancingSuccessList(query) {
  return request({
    url: "/finance/companyFinancing/getFinancingSuccessList",
    method: "GET",
    params: query
  });
}
// 金融产品清单列表
export function getInventory(query) {
  return request({
    url: "/finance/financeProduct/inventory",
    method: "GET",
    params: query
  });
}
// 金融产品清单详情
export function getProductDetail(query) {
  return request({
    url: "/finance/financeProduct/get/" + query,
    method: "GET"
  });
}
// 金融产品清单列表
export function getDetailedPage(query) {
  return request({
    url: "/finance/companyFinancing/getDetailedPage",
    method: "GET",
    params: query
  });
}
// 金融产品清单详情
export function getDetailedDetails(query) {
  return request({
    url: "/finance/companyFinancing/getDetailedDetails/" + query,
    method: "GET"
  });
}
// 融资成功案例清单列表
export function getFinancingSuccessPage(query) {
  return request({
    url: "/finance/companyFinancing/getFinancingSuccessPage",
    method: "GET",
    params: query
  });
}
// 融资成功案例清单详情
export function getFinancingSuccessDetails(query) {
  return request({
    url: "/finance/companyFinancing/getFinancingSuccessDetails/" + query,
    method: "GET"
  });
}
// 企业诉求添加 
export function getAppealAdd(data) {
  return request({
    url: "/finance/company/other/appeal/add",
    method: "POST",
    data
  });
}
// 金融诉求添加 
export function getAddFinancing(data) {
  return request({
    url: "/finance/companyFinancing/addFinancing",
    method: "POST",
    data
  });
}
// 投资机构入驻 
export function getCompanyInvestmentAdd(data) {
  return request({
    url: "/finance/companyInvestment/add",
    method: "POST",
    data
  });
}
// 金融产品申请
export function financeProductApplyAdd(data) {
  return request({
    url: "/finance/financeProduct/apply/add",
    method: "POST",
    data
  });
}